import Poker from './poker'
import R2V2Player from './room-player'

/**
 * 2v2 对局房间模型
 */
class Room2V2 {
  constructor() {
    /** @type {Poker[]} */ this.pile = []        // 牌堆
    this.pos = 0                                  // 发牌指针
    /** @type {R2V2Player[]} */ this.players = [  // 四位玩家
      new R2V2Player(),
      new R2V2Player(),
      new R2V2Player(),
      new R2V2Player(),
    ]
    /** @type {Poker[]} */ this.extra1 = []       // 预留扩展1
    /** @type {Poker[]} */ this.extra2 = []       // 预留扩展2
    /** @type {Array<object>} */ this.events = []  // 事件记录队列（JSON对象）
    
  }
}

export default Room2V2


